package com.my.demo.model;

import java.util.Date;

import com.my.annotation.Model;
import com.my.annotation.Property;
import com.my.framework.model.BaseModel;

import lombok.Getter;
import lombok.Setter;

@Model(value = "图书信息", tableName = "m_book")
@Getter
@Setter
public class Book extends BaseModel {

	@Property(value = "图书Id", pk = true)
	private Long bookId;
	@Property(value = "图书名称", length = 32, validate = "notNull")
	private String bookName;
	@Property(value = "ISBN", length = 32, validate = "notNull,unique")
	private String isbn;
	@Property(value = "创建时间")
	private Date createTime;
	@Property(value = "价格", validate = "notNull")
	private Integer price;
}
